import configsvc from "./service/configsvc";
class ConfigINTF {
    constructor(canvas) {
        this.m_pCanvas = canvas;
        this.m_pService = new configsvc.ConfigSvc(canvas.getDataManager());
    }

    config(type,val){
        console.log("config sys option type:"+type + "  val:"+val);
        this.m_pService.config(type,val,this.m_pCanvas.name);
        if (type == 'editMode') {
            this.m_pCanvas.resetFileMode(val);
        }
    }
}

export default { ConfigINTF }